package com.aldd.service;

import com.aldd.entity.Book;

import java.util.List;

public interface BookService {
    List<Book> selectAllBook();

    //根据ID查图书
    Book selectBookById(int id);

    //根据ID删除图书
    Boolean deleteBookById(int id);

    //添加图书
    Boolean insertBook(Book book);

    //修改图书
    Boolean updateBook(Book book);

    //根据书名查找图书
    List<Book> selectBookByBookName(String bookName);

}
